x86/VPMU: add public xenpmu.h
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 9 Jul 2015 11:34:29 +0000 (13:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 9 Jul 2015 11:34:29 +0000 (13:34 +0200)
commitf35acc65e15121bd990939fe9735a775cb8ad83a
tree105b2c6e9828c496c8f7a922fa132eb5cae473e8
parenta05d39009fa9929f985bf56c4d17d298ee5da42a
x86/VPMU: add public xenpmu.h

Add pmu.h header files, move various macros and structures that will be
shared between hypervisor and PV guests to it.

Move MSR banks out of architectural PMU structures to allow for larger sizes
in the future. The banks are allocated immediately after the context and
PMU structures store offsets to them.

While making these updates, also:
* Remove unused vpmu_domain() macro from vpmu.h
* Convert msraddr_to_bitpos() into an inline and make it a little faster by
  realizing that all Intel's PMU-related MSRs are in the lower MSR range.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/svm/vpmu.c
xen/arch/x86/hvm/vmx/vpmu_core2.c
xen/arch/x86/hvm/vpmu.c
xen/arch/x86/oprofile/op_model_ppro.c
xen/include/Makefile
xen/include/asm-x86/hvm/vmx/vpmu_core2.h [deleted file]
xen/include/asm-x86/hvm/vpmu.h
xen/include/public/arch-arm.h
xen/include/public/arch-x86/pmu.h [new file with mode: 0644]
xen/include/public/pmu.h [new file with mode: 0644]
xen/include/xlat.lst